let sc = new Vue({
    el: '#success',
    data: {

    },
    created() {

        let oid={
            orderId:localStorage.getItem("successOrderId")
        }
        // 付款成功后，修改订单状态
        $.ajax({
            url:'http://localhost:8080/cinema/api/UpdateOrderStatusByIdServlet.do',
            type:'put',
            data:JSON.stringify(oid),
            dataType:'json',
            success:function(dto){
                if(dto.code==200){
                    $.cookie("djsendtime", null);
                    window.location = "home_myOrder.html";
                }else{
                    layer.msg(dto.msg,{icon:5});
                }
            }
    
        });
    }
});